<?php
/*xxx*/
class Registry
{
   private $_test;

   private $test; private static $contentArr = array();

    public static function set($key, $value)
    {
        if ($key == '') throw new Exception('Key can NOT be empty');

        self::$contentArr[$key] = $value;
    }

    public static function get($key)
    {
        if (!array_key_exists($key, self::$contentArr))
            throw new Exception('Key not found');

        return self::$contentArr[$key];
    }
}